package com.ruoyi.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 用户服务订单对象 sys_service_order
 *
 * @author jjp
 * @date 2020-04-16
 */
public class SysServiceOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 订单号
     */
    private String orderCode;

    /**
     * $column.columnComment
     */
    private Long typeDetailId;

    /**
     * 用户id
     */
    private Long mobileUserId;

    /**
     * 公司id
     */
    private Long deptId;

    /**
     * 工人id
     */
    private Long userId;

    /**
     * 服务订单状态 0-未支付  1-待接单 2-服务中 3-已完成 4-未支付超时
     */
    private String orderStatus;

    private String reason;

    /**
     * 支付方式 1-支付宝 2-微信(数据字典)
     */
    private String payType;

    /**
     * 支付时间
     */
    private Date payTime;

    /**
     * 项目名称
     */
    private String serviceName;

    /**
     * 姓名
     */
    private String name;

    /**
     * 联系方式
     */
    private String phone;

    /**
     * 上门时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date serviceTime;

    /**
     * 详细内容
     */
    private String serviceDetail;

    /**
     * $column.columnComment
     */
    private Long addressId;

    /**
     * $column.columnComment
     */
    private Long cityId;

    /**
     * 订单类型（0-订金 1-全款）
     */
    private String orderType;

    /**
     * 实付金额
     */
    private Double money;

    /**
     * 订单总金额
     */
    private Double totalMoney;

    /**
     * 尾款
     */
    private Double tailMoney;

    /**
     * 优惠券id
     */
    private Long couponId;
    /**
     * 优惠券金额
     *
     * @param orderId
     */
    private Double couponMoney;

    /**
     * 订单数量或者时间
     */
    private Long total;


    private Long skuId;

    private String data;

    private String typeName;

    private String cancelStatus;

    private String userName;

    private String deptName;

    private String workerName;

    @ApiModelProperty(name = "地址")
    private String area;
    @ApiModelProperty(name = "详细地址")
    private String address;

    private String cityName;

    private String telphone;
    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setTypeDetailId(Long typeDetailId) {
        this.typeDetailId = typeDetailId;
    }

    public Long getTypeDetailId() {
        return typeDetailId;
    }

    public void setMobileUserId(Long mobileUserId) {
        this.mobileUserId = mobileUserId;
    }

    public Long getMobileUserId() {
        return mobileUserId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setServiceTime(Date serviceTime) {
        this.serviceTime = serviceTime;
    }

    public Date getServiceTime() {
        return serviceTime;
    }

    public void setServiceDetail(String serviceDetail) {
        this.serviceDetail = serviceDetail;
    }

    public String getServiceDetail() {
        return serviceDetail;
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Double getMoney() {
        return money;
    }

    public void setTotalMoney(Double totalMoney) {
        this.totalMoney = totalMoney;
    }

    public Double getTotalMoney() {
        return totalMoney;
    }

    public void setTailMoney(Double tailMoney) {
        this.tailMoney = tailMoney;
    }

    public Double getTailMoney() {
        return tailMoney;
    }


    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public Double getCouponMoney() {
        return couponMoney;
    }

    public void setCouponMoney(Double couponMoney) {
        this.couponMoney = couponMoney;
    }


    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }


    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }


    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }


    public String getCancelStatus() {
        return cancelStatus;
    }

    public void setCancelStatus(String cancelStatus) {
        this.cancelStatus = cancelStatus;
    }


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getWorkerName() {
        return workerName;
    }

    public void setWorkerName(String workerName) {
        this.workerName = workerName;
    }


    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }


    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    @Override
    public String toString() {
        return "SysServiceOrder{" +
                "orderId=" + orderId +
                ", orderCode='" + orderCode + '\'' +
                ", typeDetailId=" + typeDetailId +
                ", mobileUserId=" + mobileUserId +
                ", deptId=" + deptId +
                ", userId=" + userId +
                ", orderStatus='" + orderStatus + '\'' +
                ", reason='" + reason + '\'' +
                ", payType='" + payType + '\'' +
                ", payTime=" + payTime +
                ", serviceName='" + serviceName + '\'' +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", serviceTime=" + serviceTime +
                ", serviceDetail='" + serviceDetail + '\'' +
                ", addressId=" + addressId +
                ", cityId=" + cityId +
                ", orderType='" + orderType + '\'' +
                ", money=" + money +
                ", totalMoney=" + totalMoney +
                ", tailMoney=" + tailMoney +
                ", couponId=" + couponId +
                ", couponMoney=" + couponMoney +
                ", total=" + total +
                ", skuId=" + skuId +
                ", data='" + data + '\'' +
                ", typeName='" + typeName + '\'' +
                ", cancelStatus='" + cancelStatus + '\'' +
                ", userName='" + userName + '\'' +
                ", deptName='" + deptName + '\'' +
                ", workerName='" + workerName + '\'' +
                ", area='" + area + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
